package com.kexun.entity.DO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@ToString
@TableName("sec_department")
public class Department implements Serializable {
    @TableId(value = "dp_id", type = IdType.AUTO)
    private Integer dpId;
    private String dpName;
    private String dpDesc;
    private Integer dpParentId;
    private Date dpCreateTime;
    @TableField(exist = false)
    private String parentDpName;
    @TableField(exist = false)
    private int childCount;
    @TableField(exist = false)
    private List<Department> childList = new ArrayList<Department>();
    @TableField(exist = false)
    private Integer[] shopList;
}
